package com.ruoyi.project.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;

import lombok.Data;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * 内容联系人对象 content_contact
 * 
 * @author ruoyi
 * @date 2025-06-20
 */
@Data
public class ContentContact
{

    /** 联系人ID */
    private Long id;

    /** 关联内容ID */
    @Excel(name = "关联内容ID")
    private Long contentId;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String name;

    /** 联系人角色 */
    @Excel(name = "联系人角色")
    private String role;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contentId", getContentId())
            .append("name", getName())
            .append("role", getRole())
            .append("phone", getPhone())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .toString();
    }
}
